package com.wasu.entity.live;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * <p>------------------------------------------------------
 * <p>Copyright (C) 2020 wasu company, All rights reserved.
 * <p>------------------------------------------------------
 * <p> 包含多个频道下的节目单列表
 * <p>
 *
 * @author Created by zhangmz
 * @date on 2023/8/21
 */
public class WasuEditInfor implements Parcelable {

    private String result;
    private String resultDesc;
    private long version;
    private List<WasuEditChRelated> chList;

    public WasuEditInfor(){

    }

    public WasuEditInfor(String result, String resultDesc, long version, List<WasuEditChRelated> chList) {
        this.result = result;
        this.resultDesc = resultDesc;
        this.version = version;
        this.chList = chList;
    }

    protected WasuEditInfor(Parcel in) {
        result = in.readString();
        resultDesc = in.readString();
        version = in.readLong();
        chList = in.createTypedArrayList(WasuEditChRelated.CREATOR);
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(result);
        dest.writeString(resultDesc);
        dest.writeLong(version);
        dest.writeTypedList(chList);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<WasuEditInfor> CREATOR = new Creator<WasuEditInfor>() {
        @Override
        public WasuEditInfor createFromParcel(Parcel in) {
            return new WasuEditInfor(in);
        }

        @Override
        public WasuEditInfor[] newArray(int size) {
            return new WasuEditInfor[size];
        }
    };

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getResultDesc() {
        return resultDesc;
    }

    public void setResultDesc(String resultDesc) {
        this.resultDesc = resultDesc;
    }

    public long getVersion() {
        return version;
    }

    public void setVersion(long version) {
        this.version = version;
    }

    public List<WasuEditChRelated> getChList() {
        return chList;
    }

    public void setChList(List<WasuEditChRelated> chList) {
        this.chList = chList;
    }

    @Override
    public String toString() {
        return "WasuEditInfor{" +
                "result='" + result + '\'' +
                ", resultDesc='" + resultDesc + '\'' +
                ", version=" + version +
                ", chList=" + chList +
                '}';
    }
}
